import axios from 'axios';

let base = 'http://127.0.0.1:8000';


//测试
export const c = params => { return axios.get(`${base}/cs/`, { params:params }).then(res => res.data); };

//账号注册
export const register = params => { return axios.get(`${base}/register/`, { params:params }).then(res => res.data); };

//登录
export const login = params => { return axios.get(`${base}/login/`, { params:params }).then(res => res.data); };

//获取用户信息
export const showuser = params => { return axios.get(`${base}/showuser/`, { params:params }).then(res => res.data); };

//用户激活
export const upup = params => { return axios.get(`${base}/upup/`, { params:params }).then(res => res.data); };

//修改密码
export const sendemail = params => { return axios.get(`${base}/sendemail/`, { params:params }).then(res => res.data); };

//修改密码
export const u_p = params => { return axios.get(`${base}/u_p/`, { params:params }).then(res => res.data); };

//修改权限
export const up_qx = params => { return axios.get(`${base}/up_qx/`, { params:params }).then(res => res.data); };

//获取对应公司信息
export const companies_info = params => { return axios.get(`${base}/companies_info/`, { params:params }).then(res => res.data); };

//获取标签
export const get_tag = params => { return axios.get(`${base}/get_tag/`, { params:params }).then(res => res.data); };

//获取货物信息
export const e_type = params => { return axios.get(`${base}/e_type/`, { params:params }).then(res => res.data); };

//添加标签信息
export const add_tag = params => { return axios.get(`${base}/add_tags/`, { params:params }).then(res => res.data); };

//添加货物类型信息
export const add_c_type = params => { return axios.get(`${base}/add_c_type/`, { params:params }).then(res => res.data); };

//添加标签信息
export const update_tag = params => { return axios.post(`${base}/add_tags/`, params).then(res => res.data); };